import math
def anorm(p1, p2):
    NORM = math.sqrt((p1[0] - p2[0]) ** 2 + (p1[1] - p2[1]) ** 2)#两点距离
    if NORM == 0:
        return 0
    return 1 / (NORM)#距离的倒数是啥